package com.aldobucchi.core.comparison.ordered.impl
{
	import com.aldobucchi.core.comparison.ordered.IOrderedComparator;
	import com.aldobucchi.core.comparison.result.ComparisonResult;
	import com.aldobucchi.core.comparison.result.ComparisonResults;










	public class DefaultOrderedComparator implements IOrderedComparator
	{
		
		
		public function compare( value1:*, value2:* ):ComparisonResult
		{
			if ( value1 == value2 )
				return ComparisonResults.EQUAL;
			
			if ( value1 > value2 )
				return  ComparisonResults.BIGGER;
			
			if ( value1 < value2 )
				return  ComparisonResults.SMALLER;
			
			return ComparisonResults.DIFFERENT;
		}
		
	}
	
}